package com.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 何永豪
 * @className GrpcConfig
 * @description TODO
 * @date 2023/11/7 16:58
 */
@Configuration
public class GrpcConfig {

    @Bean
    @ConditionalOnProperty(value = "grpc.enable",havingValue = "true",matchIfMissing = true)
    public GrpcServer grpcServer(){
        return new GrpcServer();
    }

}
